# The first target in this Makefile is "average". It will be built if
# make is run with no arguments

# Tell it how to build our executable, 'average'. The executable depends on
# the object files:
average: average.o main.o
	g++ average.o main.o -o average

# Tell make how to make the object files from the source files:
average.o: average.cpp average.hpp
	g++ average.cpp -c

main.o: main.cpp average.hpp
	g++ main.cpp -c

# If you want to get rid of the object files and source files, then run the 
# 'clean' target with 'make clean'
clean:
	rm -rf average.o main.o
	rm -rf average
